<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<link href="<c:url value="/resources/css/main.css" />" rel="stylesheet">
</head>
<body onload='document.f.j_username.focus();'>

		<!-- START Body -->
		<div id="page_content" align="center">

			<h3>Login with Username and Password</h3>

			<c:if test="${param.error != null}">
				Failed to Login:
				<div class="errorblock">
					Your login attempt was not successful.<br />
					${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
				</div>
			</c:if>

			<c:if test="${param.logout != null}">
				<h4>You have been logged out.</h4>
			</c:if>


			<form name='f' action="<c:url value='j_spring_security_check' />"
				method='POST'>

				<table>
					<tr>
						<td>Username:</td>
						<td><input type='text' name='j_username' value=''></td>
					</tr>
					<tr>
						<td>Password:</td>
						<td><input type='password' name='j_password' /></td>
					</tr>
					<tr>
						<td><input name="submit" type="submit" value="Submit" /></td>
						<td><input name="reset" type="reset" value="Reset" /></td>
					</tr>
				</table>
			</form>
		</div>
		<!-- END Body -->
</body>
</html>